home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20030409-20031118 / 000254_icurmtdude@yahoo.com_Thu Sep 4 10:16:14 EDT 2003.msg < prev    next >
Text File  |  2020-01-01  |  2KB  |  60 lines

  1. Article: 14494 of comp.protocols.kermit.misc
  2. Path: newsmaster.cc.columbia.edu!panix!bloom-beacon.mit.edu!newsfeed.stanford.edu!postnews1.google.com!not-for-mail
  3. From: icurmtdude@yahoo.com (icurmt)
  4. Newsgroups: comp.protocols.kermit.misc
  5. Subject: missing bytes...
  6. Date: 3 Sep 2003 18:13:05 -0700
  7. Organization: http://groups.google.com/
  8. Lines: 42
  9. Message-ID: <cf6cc183.0309031713.73a00933@posting.google.com>
  10. NNTP-Posting-Host: 24.58.29.68
  11. Content-Type: text/plain; charset=ISO-8859-1
  12. Content-Transfer-Encoding: 8bit
  13. X-Trace: posting.google.com 1062637986 3293 127.0.0.1 (4 Sep 2003 01:13:06 GMT)
  14. X-Complaints-To: groups-abuse@google.com
  15. NNTP-Posting-Date: 4 Sep 2003 01:13:06 GMT
  16. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14494
  17.  
  18. Hi everyone,
  19.  
  20. After no luck with this issue, I thought of posting it here.. Heres
  21. what I am trying to do..
  22.  
  23. I am sending out commands out of a file through serial port to my
  24. application which returns me the response accordingly in return..
  25.  
  26. <code snippet...> 
  27. ..
  28. ...
  29. transmit /binary /noecho /nowait <commandsfile>
  30. input 1 -1
  31. .output := \fhexify(\v(input))
  32. echo \m(output)
  33. ...
  34. fopen /write \%c <outputfile>
  35. ..
  36. fwrite /line \%c \m(output)
  37. ..
  38. fclose \%c
  39.  
  40. </end>
  41.  
  42. The script works fine. The response as under is outputted to the
  43. 'outputfile'. Now when I echo the response I get
  44.  
  45. 16 06 14 34 47 12 01 87 
  46. instead of 
  47. 16 06 14 34 47 12 00 01 87 00 00 00
  48.  
  49. Note the difference after the 6th byte. The 7th and 8th byte which is
  50. 00 01 shows up as 01 and 10th, 11th and 12th bytes do now show up at
  51. all. However I have had success getting bytes in the order such as
  52. below and echoing this command works fine.
  53. 16 06 14 34 46 11 00 00 BB 10 00 00 
  54.  
  55. If anyone has any idea of whats going on here then please help me.
  56.  
  57. Thanx,
  58.  
  59. Ray
  60.